/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package commands;
import IA.*;
/**
 *
 * @author Jeremy
 */
public class CmdGetNumberOfOrders extends Command {
    private int TableID;
    
    public CmdGetNumberOfOrders(InformationAggregator ia, int TableID) {
        super(ia);
        this.TableID = TableID;
    }

    @Override
    public Object execute() {
        return ia.getServiceCollection().ServiceByTable(TableID).getNumItems();
    }
}
